const Mock=require('mockjs')

const data=Mock.mock({
    "data|4":[{
        name:"@cword(4)",
        "children|3":[{
            name:"@cword(6)",
            img:"@image(60x60,@color)",
            id:"@id"
        }]
    }]
})

module.exports = {
    devServer:{
        before(app){
            app.get("/list",(req,res)=>{
                res.json(data.data)
            })
        }
    }
}